package com.iplatform.file.function.meta.utils;

import org.apache.poi.ss.usermodel.Cell;
import org.apache.poi.ss.usermodel.Row;

/**
 * @author Dair
 * @since
 */
public class YjsExcelReader extends AbstractPoiExcelReader<Object> {
	
	
	/**
	 * 重写方法，读取每一行数据并封装成实体
	 *
	 * @param row      行数据
	 * @param arr
	 * @param rowIndex
	 * @return
	 */
	@Override
	public String[][] convertRowToData(Row row, String[][] arr, int rowIndex) {
		
		Cell cell;
		
		int lastCellNum = row.getLastCellNum();
		
		for (int cellNum = 0; cellNum < lastCellNum; cellNum++) {
			cell = row.getCell(cellNum);
			String value = convertCellValueToString(cell);
			arr[rowIndex][cellNum] = value;
		}
		return arr;
	}
	
}

